package lang;

/**
 * @classname:Mathdemo
 * @description:
 * @author: Mr.Z
 * @date: 2020/12/7 22:23
 * @version: 0.1
 * @since:1.8
 */
public class Mathdemo {
    public static void main(String[] args) {
        //随机数
        int a = (int)(Math.random()*10+10);
        //绝对值
        System.out.println(Math.abs(-12));
        //平方
        System.out.println(Math.pow(2, 10));
        //四舍五入
        System.out.println(Math.round(1.2323));

    }
}
